function findNum(num){
    let arr = []
    for(let i = 10; i<num;i++){
        let a =  i.toString()
        let b = a.split("").reverse().join("")
        if(a === b){
            arr.push(b)
        }
    }
    return arr
}

console.log(findNum(1000))